#include<iostream>
#include"../tools/cpp-httplib-master/httplib.h"

int main()
{
    httplib::Client clt("139.9.209.130",8888);
    auto result1 = clt.Get("/hi");
    std::cout<<"status : "<<result1->status<<std::endl;
    std::cout<<"body : "<<result1->body<<std::endl;
    auto result2 =clt.Get("/numbers/123456");
    std::cout<<"status : "<<result2->status<<std::endl;
    std::cout<<"body : "<<result2->body<<std::endl;
    httplib::MultipartFormDataItems items;
    httplib::MultipartFormData ml;
    ml.name = "file";
    ml.filename = "hello";
    ml.content_type = "text/plain";
    ml.content = "client say hello";
    items.push_back(ml);
    auto result3 = clt.Post("/upload",items);
    std::cout<<"status : "<<result3->status<<std::endl;
    std::cout<<"body : "<<result3->body<<std::endl;
    return 0;
}